package com.tf.integrated.service.impl;


import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.ccssoft.m8.common.ccssoft.modules.util.EntityWrapperHandle;
import com.ccssoft.m8.common.ccssoft.modules.util.PageUtils;
import com.ccssoft.m8.common.ccssoft.modules.util.Query;
import com.tf.integrated.dao.WarningresultpersonDao;
import com.tf.integrated.entity.WarningresultpersonEntity;
import com.tf.integrated.service.WarningresultpersonService;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;


@Service("warningresultpersonService")
public class WarningresultpersonServiceImpl extends ServiceImpl<WarningresultpersonDao, WarningresultpersonEntity> implements WarningresultpersonService<WarningresultpersonEntity>
{
    public PageUtils<WarningresultpersonEntity> queryPage(Map<String, Object> params)
    {
        EntityWrapperHandle<WarningresultpersonEntity> ew = new EntityWrapperHandle<WarningresultpersonEntity>(params);
        Page<WarningresultpersonEntity> page = this.selectPage(new Query<WarningresultpersonEntity>(params).getPage(),ew);
        page.setTotal(this.selectCount(ew));
        return new PageUtils<WarningresultpersonEntity>(page);
    }

    public List<WarningresultpersonEntity> queryPageByLike(Map<String, Object> params)
    {
        return baseMapper.queryPageByLike(params);
    }
}
